package com.java.pertar.springiocdi;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;

@Controller
public class YmlTest {

    @Value("${my.key}")
    private Integer s1;

    @Value("${my.key1}")
    private String s2;

    @PostConstruct
    public void init() {
        System.out.println(s1);
        System.out.println(s2);
    }
}
